package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存对象 Inventory
 * 
 * @author ruoyi
 * @date 2025-05-20
 */
public class Inventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID（逻辑外键） */
    @Excel(name = "商品ID", readConverterExp = "逻=辑外键")
    private Long productId;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long quantity;

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("quantity", getQuantity())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
